import request from "@/utils/request";
// 获取学员列表
export const getStudentList = (params) => {
  return request({
    url: "/student/studentList",
    params,
  });
};

// 获取课程分类对象
export const getCourseObj = () => {
  return request({
    url: "/student/courseObj",
  });
};
// 修改学员信息
export const reviseStudent = (data) => {
  return request({
    method: "post",
    url: "/student/reviseStudent",
    data,
  });
};

// 修改班期
export const reviseStudentClass = (data) => {
  return request({
    url: "/student/reviseStudentClass",
    method: "post",
    data,
  });
};

// 修改是否启用课程
export const reviseIsEnable = (data) => {
  return request({
    method: "post",
    url: "/student/reviseIsEnable",
    data,
  });
};

